// 环境传感器接口
export interface EnvironmentalSensor {
  id: string;
  name: string;
  type: 'temperature' | 'humidity' | 'smoke' | 'waterLeak' | 'airFlow';
  location: string;
  value: number;
  unit: string;
  status: 'normal' | 'warning' | 'critical';
  position: {
    x: number;
    y: number;
    z: number;
  };
  updateInterval: number;
  lastUpdated: string;
}

// 电力设备接口
export interface PowerDevice {
  id: string;
  name: string;
  type: 'PDU' | 'UPS' | 'Transformer' | 'Generator';
  location: string;
  status: 'online' | 'offline' | 'warning' | 'error';
  inputVoltage: number;
  outputVoltage: number;
  current: number;
  powerRating: number;
  efficiency: number;
  batteryLevel?: number;
  position: {
    x: number;
    y: number;
    z: number;
  };
}

// HVAC设备接口
export interface HVACDevice {
  id: string;
  name: string;
  type: 'AC' | 'Heater' | 'Fan' | 'Ventilation';
  location: string;
  status: 'online' | 'offline' | 'warning' | 'error';
  temperatureSetting: number;
  fanSpeed: number;
  energyConsumption: number;
  position: {
    x: number;
    y: number;
    z: number;
  };
}

// 消防设备接口
export interface FireDevice {
  id: string;
  name: string;
  type: 'SmokeDetector' | 'HeatDetector' | 'Sprinkler' | 'Extinguisher' | 'Alarm';
  location: string;
  status: 'normal' | 'warning' | 'activated';
  batteryLevel: number;
  testDate: string;
  position: {
    x: number;
    y: number;
    z: number;
  };
}

// 设施设备联合类型
export type FacilityDevice = EnvironmentalSensor | PowerDevice | HVACDevice | FireDevice;